#include "EtatRobotFige.h"

EtatRobotFige* EtatRobotFige::instance = NULL;

EtatRobotFige* EtatRobotFige::getInstance(Robot* r){

	if(instance == NULL)
		instance = new EtatRobotFige(r);

	return instance;
}


void EtatRobotFige::repartir() {

	r->changerEtat((EtatRobot*)r->getAncienEtat());
}
